package com.turing.data.model.domain.element;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.extension.activerecord.Model;
    import com.baomidou.mybatisplus.annotation.TableId;
    import java.time.LocalDateTime;
    import com.turing.orm.model.domain.common.BaseDo;
    import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
    import lombok.Builder;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;
    import lombok.AllArgsConstructor;
    import lombok.NoArgsConstructor;


/**
* @Description 
* @Author livin
* @Date 2022-03-21
*/
@ApiModel(value ="")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class SubProduct extends BaseDo<SubProduct> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("template_id")
    private String templateId;

    @TableField("name")
    private String name;

    @TableField("ele_id")
    private Integer eleId;

    @ApiModelProperty(value = "0 fixed 1 element")
    @TableField("type")
    private Integer type;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("updated_time")
    private LocalDateTime updatedTime;

    @TableField("ele_name")
    private String eleName;

    @TableField("is_del")
    private Integer isDel;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}

